using System.Collections.Generic;
using System.Linq;

namespace BSpec.Conventions
{
    public class SpecificationElementConvention
    {
        private readonly IList<string> _patterns = new List<string>();

        public string[] Patterns
        {
            get { return _patterns.ToArray(); }
        }

        public SpecificationElementConvention AddMatching(string pattern)
        {
            _patterns.Add(pattern);
            return this;
        }
    }
}